package com.api.userinfo;

import com.st.entity.Result;
import com.st.entity.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@RequestMapping("userInfo")
@FeignClient("st-userInfo")
public interface UserInfoClient {

    //查询用户详细信息
    @RequestMapping("list")
    public UserInfo list();

    //修改用户真实姓名
    @RequestMapping("/upData")
    public Result tNameAddUp(@RequestParam("userInfo") UserInfo UserInfo);

    //发送邮箱
    @RequestMapping("/regist")
    public Result regist(@RequestParam("userInfo")UserInfo userInfo);

    //验证邮箱
    @RequestMapping("/check")
    public Result check(@RequestParam("userInfo")UserInfo userInfo, @RequestParam("code")String code);

    //验证短信
    @RequestMapping("/checkNote")
    public Result checkNote(@RequestParam("phone")String phone,@RequestParam("note")String note);
    //查看详情
    @RequestMapping("/searchUserInfo")
    public UserInfo searchUserInfo(@RequestParam Integer id);

}
